package com.jgy.controller;

import com.jgy.annotation.SetLogValue;
import com.jgy.service.CommonService;
import com.jgy.service.XmcDataService;
import com.jgy.utils.CommonConstants;
import com.jgy.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 姜光远
 * @date 2023/7/1 19:33
 */
@RestController
@RequestMapping("/commom")
public class CommomController {

    @Autowired
    private CommonService commonService;

    /**
     * 通用接口
     * @return
     */
    @SetLogValue(modular = "commomInterface",type = CommonConstants.SELECT, describe = "commomInterface")
    @PostMapping("/commomInterface")
    public Object commomInterface() throws ClassNotFoundException {

        return R.ok(commonService.publish());
    }
}
